import Vue from 'vue'
import animated from 'animate.css'
import router from './router'
import {RouterMount} from 'uni-simple-router'
// import Vuex from 'vuex'
import routerLink from './node_modules/uni-simple-router/component/router-link.vue' //为了兼容小程序端,必须在此引入
Vue.component('router-link',routerLink)
import store from './store/index'
import App from './App'
// import 'es6-promise/auto' //哪个页面要vuex就引用
// import BaiduMap from 'vue-baidu-map'

// Vue.use(BaiduMap,{
// 	ak:"UGFkVHYosNLgAlQgPjHfRWRmbprtMsZU"
// })
Vue.config.productionTip = false

App.mpType = 'app'

Vue.use(animated)

const app = new Vue({
	store,
	...App,
})
RouterMount(app,'#app'); // H5写法
app.$mount(); // 兼容小程序和app端
